package cn.zhaozhiqi.controller.api;

import cn.dev33.satoken.annotation.SaIgnore;
import cn.zhaozhiqi.remote.api.ILoginFeignClient;
import cn.zhaozhiqi.remote.dto.LoginDto;
import cn.zhaozhiqi.result.JSONResult;
import cn.zhaozhiqi.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ILoginFeignClientImpl implements ILoginFeignClient {

    @Autowired
    private ILoginService loginService;
    @Override
    @SaIgnore
    public JSONResult register(LoginDto dto) {
        return JSONResult.success(loginService.register(dto));
    }
}
